<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>steps</title>
    <style>
      h3 {
        margin: 0;
      }

      .icon-true {
        width: 20px;
      }

      .icon-edit {
        width: 30px;
      }

      .show-line {
        background-color: #ccc;
      }

      .section {
        width: 500px;
        margin: 200px auto;
        background-color: #dfebff;
      }

      .steps .title {
        display: flex;
        align-items: center;
      }

      .title span {
        margin-left: 10px;
        margin-right: 20px;
        font-size: 16px;
      }

      .steps .content {
        display: flex;
      }

      .content .line {
        width: 2px;
        height: 35px;
        margin-left: 9px;
      }

      .content .abstract {
        margin-left: 19px;
        padding-bottom: 20px;
        color: #ccc;
      }
    </style>
  </head>
  <body>
    <div id="app">
      <div class="section">
        <h3>匹配详情</h3>
        <div class="steps" v-for="(item, index) in detail" :key="item.id">
          <div class="title">
            <img class="icon-true" src="./img/true.png" alt="" />
            <span>{{item.title}}</span>
            <img class="icon-edit" src="./img/edit.png" alt="" />
          </div>
          <div class="content">
            <div class="line" :class="{'show-line': index !== detail.length - 1}"></div>
            <div class="abstract">{{item.content}}</div>
          </div>
        </div>
      </div>
    </div>

    <script src="https://cdn.bootcdn.net/ajax/libs/vue/2.6.12/vue.js"></script>
    <script>
      new Vue({
        el: '#app',
        data: {
          detail: [
            { id: 1, title: '企业注册地区', content: '中国-北京-海淀区' },
            { id: 2, title: '企业成立日期', content: '时间要求在2019年01月01日' }
          ]
        }
      })
    </script>
  </body>
</html>
